body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#map-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

svg {
    width: 100%;
    height: 100%;
    background-color: #a4d1e3;
}

.country {
    fill: #4CAF50;
    stroke: #fff;
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
    transition: fill 0.3s ease;
}

.country:hover {
    fill: #2E7D32;
    cursor: pointer;
    opacity: 0.8;
}

.country.infected {
    fill: #ff4444;
}

.country.infected:hover {
    fill: #cc0000;
    cursor: default;
}

.country.severe {
    fill: #990000;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

.game-stats {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 100;
}

.game-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat {
    margin: 5px 0;
    font-size: 16px;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speed-controls {
    display: flex;
    gap: 2px;
}

.speed-btn {
    padding: 5px 8px;
    font-size: 12px;
    background: #ddd;
    border: 1px solid #999;
    border-radius: 3px;
    cursor: pointer;
}

.speed-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #2E7D32;
}

button {
    margin: 2px;
    padding: 5px 10px;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.evolution-points {
    margin-left: 10px;
    font-weight: bold;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 200;
}

.flight-path {
    fill: none;
    pointer-events: none;
}

.upgrade-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.upgrade-menu.hidden {
    display: none;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.upgrade-header h2 {
    margin: 0;
    color: #ff4444;
}

#close-upgrades {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.upgrade-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.upgrade-category {
    border: 1px solid #444;
    padding: 15px;
    border-radius: 5px;
}

.upgrade-category h3 {
    color: #ff4444;
    margin-top: 0;
}

.upgrade {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade:hover {
    background: rgba(255, 255, 255, 0.2);
}

.upgrade-level {
    display: flex;
    gap: 2px;
}

.level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.level-dot.filled {
    background: #ff4444;
}

.cost {
    color: #ff4444;
    font-size: 0.9em;
}

.upgrade.maxed {
    opacity: 0.5;
    cursor: not-allowed;
}

.infection-dot {
    pointer-events: none;
}

.death-dot {
    pointer-events: none;
}

.dna-bubble {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,0,0,0.8) 0%, rgba(255,0,0,0.4) 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
    pointer-events: all;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.dna-bubble:hover {
    transform: scale(1.2);
}

.points-popup {
    position: absolute;
    color: white;
    font-weight: bold;
    pointer-events: none;
    animation: float-up 1s forwards;
}

@keyframes float-up {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}